Class symantec.itools.db.beans.brl.validation.ValidationHelper
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.validation.ValidationHelper
Object
|
+----DerivationHelper
|
+----symantec.itools.db.beans.brl.validation.ValidationHelper
- public class ValidationHelper
- extends DerivationHelper
Helper class for validation formulas
- Version:
- 1.0 08/04/98
- Author:
- Puru Balakrishnan
-
DATEEXCPTITLE
-
-
EXCPTITLE
-
-
symantec.itools.db.beans.brl.validation.ValidationHelper()
- Default constructor
-
applyOperator(long, String, long)
-
-
applyOperator(double, String, double)
-
-
getObjectValue(CompColInputMember)
- Method to return the Object value to be used in the
validation formula
-
getStringValue(CompColInputMember)
- Method to return the object value as a String
-
getValidNotPerformedMsg()
-
-
validateDate(Object, String, Object)
- Method to validate date
-
validateDate(Object, String, String)
- Method to validate date
-
validateNumber(Object, String, Object)
- Method to validate numbers
-
validateString(String, String, String)
- Method to validate string
DATEEXCPTITLE
protected static java.lang.String DATEEXCPTITLE
EXCPTITLE
protected static java.lang.String EXCPTITLE
ValidationHelper
public ValidationHelper()
- Default constructor
applyOperator
protected boolean applyOperator(long lhs,
String oper,
long rhs)
applyOperator
protected boolean applyOperator(double lhs,
String oper,
double rhs)
getObjectValue
public java.lang.Object getObjectValue(CompColInputMember member)
- Method to return the Object value to be used in the
validation formula
- Parameters:
- member - the CompColInputMember could be source or target
- Returns:
- the value to be used in the validation formula
getStringValue
public java.lang.String getStringValue(CompColInputMember member)
- Method to return the object value as a String
- Parameters:
- member - the specified CompColInputMember
- Returns:
- the object value of the specified member
getValidNotPerformedMsg
protected java.lang.String getValidNotPerformedMsg()
validateDate
public boolean validateDate(Object source,
String oper,
Object target)
- Method to validate date
- Parameters:
- source - the Object value to be validated
- oper - the date operator
- target - the Object value to be validated against
- Returns:
- true if valid
validateDate
public boolean validateDate(Object source,
String oper,
String target)
- Method to validate date
- Parameters:
- source - the Object value to be validated
- oper - the date operator
- target - the String value to be validated against
- Returns:
- true if valid
validateNumber
public boolean validateNumber(Object source,
String oper,
Object target)
- Method to validate numbers
- Parameters:
- source - the Object value to be validated
- oper - the String operator
- target - the Object value to be validated against
- Returns:
- true if valid
validateString
public boolean validateString(String sourceVal,
String oper,
String targetVal)
- Method to validate string
- Parameters:
- sourceVal - the String value to be validated
- oper - the String operator
- targetVal - the String value to be validated against
- Returns:
- true if valid
All Packages Class Hierarchy This Package Previous Next Index